﻿<div 
    class="{{class}} alert cts-alert" 
    ng-class="{'alert-danger': model.Messages[0].MessageType=='Error', 'alert-success': model.Messages[0].MessageType=='Info'}"
    ng-show="model.Show">
    <button 
        class="close" 
        ng-click="model.Show = false" 
        type="button"><span>&times;</span></button>
    <ul>
        <li ng-repeat="msg in model.Messages">
            {{msg.MessageDetail}}
        </li>
    </ul>
</div>